package domd2;

public class Main {
    public static void main(String[] args) {
        //字符串截取
        String s1 = "hello world !!!";
        //从下标为2的字符串开始截取
        System.out.println(s1.substring(2));
        System.out.println("=========");
        //从下标为2的字符串开始截取到下标为5
        System.out.println(s1.substring(2,5));
    }
}
